<%@ page import="cardbs.domain.Department" %>
<%@ page import="java.util.*" %>
<%@ page language="java" contentType="text/html; charset=utf-8"
    pageEncoding="utf-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Ενημέρωση οχήματος</title>
<script type="text/javascript">
<!--

function validate_form ( )
{
    valid = true;
	if (document.updateVehicle.customerSurname.value =="" || document.updateVehicle.customerName.value =="" || document.updateVehicle.telNo.value =="" || document.updateVehicle.AFM.value =="" || document.updateVehicle.email.value =="" || document.updateVehicle.street.value =="" || document.updateVehicle.streetNo.value =="" || document.updateVehicle.city.value =="" || document.updateVehicle.postalCode.value =="" )
    {
        alert ("Παρακαλώ συμπληρώσετ όλα τα πεδία" );
        valid = false;
    }
   
    return valid;
}

//-->
</script>
</head>
<body>
<%
String trafficNoForUpdate = (String)session.getAttribute("trafficNoForUpdate");
String cName = (String)session.getAttribute("cName");
String cSurname = (String)session.getAttribute("cSurname");
String cTelNo = (String)session.getAttribute("cTelNo");
String cAFM = (String)session.getAttribute("cAFM");
String cEmail = (String)session.getAttribute("cEmail");
String cStreet = (String)session.getAttribute("cStreet");
String cStreetNo = (String)session.getAttribute("cStreetNo");
String cCity = (String)session.getAttribute("cCity");
String cPostalCode = (String)session.getAttribute("cPostalCode");
 %>
 
 <FORM Name = "updateVehicle" action="/car-dbs-implementation/UpdateCustomerVehicleServlet" onsubmit="return validate_form()" method="post">
 <div align="center">
<jsp:include page="exitPage.jsp"/>
<table width="100%" border="0" cellspacing="0" cellpadding="0">

<tr>
					<td width="32%"><img
						src="../../images/loginPages/ΕνημέρωσηΟχήματος.png" alt="Service A.E."
						width="260" height="228" /></td>
					<td style="width: 206px" width="842">
<h2>Τα στοιχεία του οχήματος με αριθμό κυκλοφορίας <%=trafficNoForUpdate %> που μπορείτε να ενημερώσετε:</h2>
 <br>
  </td>
  </tr>
  </table>
  <table width="40%">
  <tr>
    <td width="12%">
    <td>Επώνυμο πελάτη</td>
    <td><input type="text" name="customerSurname" value=<%=cSurname%>></td>
  </tr>
  <tr>
    <td width="12%">
    <td>Όνομα πελάτη </td>
    <td><input type="text" name="customerName" value=<%=cName%> ></td>
  </tr>
  <tr>
    <td width="12%">
    <td >Τηλέφωνο πελάτη</td>
    <td><input type="text" name="telNo" value=<%=cTelNo%>></td>
  </tr>
    <tr>
    <td width="12%">
    <td>Email πελάτη</td>
    <td><input type="text" name="email" value=<%=cEmail%>></td>
  </tr>
  <tr>
    <td width="12%">
    <td>ΑΦΜ πελάτη </td>
    <td><input type="text" name="AFM" value=<%=cAFM%> ></td>
  </tr>
  <tr>
    <td width="12%">
    <td> Διεύθυνση κατοικίας πελάτη</td>
    <td><input type="text" name="street" value=<%=cStreet%>></td>
  </tr>
   <tr>
    <td width="12%">
    <td> Άριθμός διεύθυνσης κατοικίας πελάτη</td>
    <td><input type="text" name="streetNo" value=<%=cStreetNo%>></td>
  </tr>
   <tr>
    <td width="12%">
    <td> Πόλη κατοικίας πελάτη</td>
    <td><input type="text" name="city" value=<%=cCity%>></td>
  </tr>
   <tr>
    <td width="12%">
    <td>T.K. κατοικίας πελάτη</td>
    <td><input type="text" name="postalCode" value=<%=cPostalCode%>></td>
  </tr>
 
  <tr>
    <td>&nbsp;</td>
  </table>
  <table>
  <tr>
  <td width="12%">
  <td width="5%" width="56">
					<input TYPE="submit" VALUE="Ενημέρωση στοιχείων οχήματος" style="width: 193px">
					</td>
					<td width="5%" width="56">
					<a href="/car-dbs-implementation/uipages/firstPagePages/HeadmasterViewLoginPage.jsp"><img src="../../images/CancelButton.png" style="border:1px solid black;"/></a>
	</td>
</tr>
</table>
</div>
</FORM>

</body>
</html>